home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / pmm / batch / makestublib.s < prev    next >
AmigaDOS Script File  |  1999-06-14  |  2KB  |  48 lines

  1. .KEY NAME,FD
  2. .BRA {
  3. .KET }
  4.  
  5. FailAt 99999999
  6.  
  7. Cd Lib:
  8.  
  9. PmmTool -n {FD} Lib:{NAME}.Lib
  10. If WARN
  11.     Cd Lib:LibStubs/{NAME}
  12.     Delete #? ALL
  13.     MakeDir STD
  14.     MakeDir 040
  15.     MakeDir PPC
  16.     MakeDir WOS
  17.  
  18.     Cd Lib:LibStubs/{NAME}/STD
  19.     FD2Lib {FD}
  20.     List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
  21.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
  22.     List #?.o LFORMAT="PmmLibr R Lib:{NAME} %m*NPmmLibr R Lib:All %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
  23.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
  24.  
  25.     Cd Lib:LibStubs/{NAME}/040
  26.     FD2Lib -40 {FD}
  27.     List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.Asm040
  28.     Execute Lib:LibStubs/{NAME}/Make_{Name}.Asm040
  29.     List #?.o LFORMAT="PmmLibr R Lib:{NAME}_040 %m*NPmmLibr R Lib:All_040 %m" > Lib:LibStubs/{NAME}/Make_{Name}.Lib040
  30.     Execute Lib:LibStubs/{NAME}/Make_{Name}.Lib040
  31.  
  32.     Cd Lib:LibStubs/{NAME}/PPC
  33.     FD2LibPPC {FD}
  34.     List #?.s LFormat="Echo %n*NPasm_wos -R -F1 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
  35.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
  36.     List #?.o LFORMAT="ppc-amigaos-ar qv Lib:{NAME}_PPC.a %n*Nppc-amigaos-ar qv Lib:All_PPC.a %n" > Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
  37.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
  38.  
  39.     Cd Lib:LibStubs/{NAME}/WOS
  40.     FD2LibWOS {FD}
  41.     List #?.s LFormat="Echo %n*NPasm_wos -F2 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
  42.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
  43.     List #?.o LFORMAT="PmmLibr R Lib:{NAME}_WOS %m*NPmmLibr R Lib:All_WOS %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
  44.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
  45. Else
  46.     Echo "{FD}*N{NAME}.Lib ist aktuell!"
  47. EndIf
  48.